c020ab
@@ -175,6 +175,8 @@
public static PrunedPartitionList prune(Table tab, ExprNodeDesc prunerExpr,
       Object[] rowWithPart = new Object[2];
 
       if (tab.isPartitioned()) {
+        LOG.debug("tabname = " + tab.getTableName() + " is partitioned");
+
         for (String partName : Hive.get().getPartitionNames(tab.getDbName(),
             tab.getTableName(), (short) -1)) {
           // If the "strict" mode is on, we have to provide partition pruner for
@@ -192,6 +194,7 @@
public static PrunedPartitionList prune(Table tab, ExprNodeDesc prunerExpr,
           LinkedHashMap<String, String> partSpec = Warehouse
               .makeSpecFromName(partName);
 
+          LOG.trace("about to process partition " + partSpec + " for pruning ");
           // evaluate the expression tree
           if (prunerExpr != null) {
             Boolean r = (Boolean) PartExprEvalUtils.evalExprWithPart(prunerExpr, partSpec,
